package com.zhangfb95.crosschain.server.infra.data.converter;

import com.zhangfb95.crosschain.infra.util.AesUtil;
import org.mapstruct.Named;

/**
 * @author zhangfubing
 * @since 2023/10/19
 */
public class AesNamed {

    @Named("encryptPassword")
    public String encryptPassword(String decryptedPassword) {
        return AesUtil.encryptToString(decryptedPassword, AesUtil.DEFAULT_PWD);
    }
}
